package com.i2863.shiroDemo.config;

/**
 * @author cexy
 * @date 2021/5/17 10:24
 * @description: 缓存常量
 * @return
 */
public interface CacheConstant {


    long INS_CACHE_TIME = 60 * 60;

    /**
     * 项目名
     */
    String PROJECT_PREFIX = "shiroDemo";

    /**
     * shiro缓存
     */
    String SHIRO_KEY_PREFIX = PROJECT_PREFIX + ":shiro";

    /**
     * 业务数据缓存
     */
    String SERVER_KEY_PREFIX = PROJECT_PREFIX + ":server";

    /**
     * 业务统计数据缓存
     */
    String STATISTIC_KEY_PREFIX = PROJECT_PREFIX + ":statistics";

    /**
     * api数据缓存
     */
    String API_KEY_PREFIX = PROJECT_PREFIX + ":api";

    /**
     * config数据缓存
     */
    String CONFIG_KEY_PREFIX = PROJECT_PREFIX + ":config";

    /**
     * 后台权限数据缓存
     */
    String PERMISSION_KEY_PREFIX = PROJECT_PREFIX + ":permissionCache";

    /**
     * 短信验证码数据缓存
     */
    String SMS_CODE_PREFIX = PROJECT_PREFIX + ":sms";

    /**
     * 短信验证码数据缓存
     */
    String JWT_CODE_PREFIX = PROJECT_PREFIX + ":jwt";


}
